<?php $this->fetch('public/head') ?>
<div class="layui-tab layui-tab-brief">
    <ul class="layui-tab-title">
        <li class=""><a href="<?php echo url('index') ?>">信息列表</a></li>
<!--         <li class="layui-this"><a href="<?php echo url('add') ?>">添加信息</a></li> -->
    </ul>
    <div class="layui-tab-content">
        <div class="layui-tab-item layui-show">
            <form class="layui-form form-container" action="<?php echo url('save') ?>" method="post">
                <!-- <div class="layui-form-item">
                    <label class="layui-form-label">所属栏目</label>
                    <div class="layui-input-block">
                        <select name="nid" lay-verify="required">
                            <?php foreach($class_type as $k=>$v): ?>
                                <option value="<?php echo $k ?>"><?php echo $v ?></option>
                            <?php endforeach; ?>
                        </select>
                    </div>
                </div> -->
                <div class="layui-form-item">
                    <label class="layui-form-label">公司名称</label>
                    <div class="layui-input-block">
                        <input type="text" name="name" value="" required  lay-verify="required" placeholder="请输入标题(只显示前30字)" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">公司LOGO</label>
                    <div class="layui-upload">
                        <input type="text" name="img_url" value="" class="layui-input layui-input-inline">
                        <button type="button" class="layui-btn _img_url"><i class="layui-icon">&#xe67c;</i>上传图片</button>
                        <img class="layui-upload-img" height="38" data-expander='default,diamond,turn3d,flip3d,rotate,fade'>
                        仅允许上传jpg,png,gif,jpeg格式，推荐尺寸100*27
                    </div> 
                </div>
                
                <!-- <div class="layui-form-item">
                    <label class="layui-form-label">公司介绍</label>
                    <div class="layui-input-block">
                        <textarea id="editor" name="content" class="layui-textarea" style="height: 200px;"></textarea>
                    </div>
                </div> -->
                <div class="layui-form-item">
                    <label class="layui-form-label">公司介绍</label>
                    <div class="layui-input-block">
                        <textarea id="editor" name="content" class="layui-textarea" style="height: 200px;"></textarea>
                    </div>
                </div>
                
                <div class="layui-form-item">
                    <label class="layui-form-label">状态</label>
                    <div class="layui-input-block">
                        <input type="radio" name="is_show" value="1" title="显示" checked="checked">
                        <input type="radio" name="is_show" value="0" title="隐藏">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">推荐</label>
                    <div class="layui-input-block">
                        <input type="radio" name="is_index" value="1" title="是">
                        <input type="radio" name="is_index" value="0" title="否" checked="checked">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">排序</label>
                    <div class="layui-input-block">
                        <input type="text" name="sort" value="0" required  lay-verify="required" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">发布时间</label>
                    <div class="layui-input-block">
                        <input type="text" name="add_time" value="<?php echo date('Y-m-d H:i:s') ?>" class="layui-input datetime">
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-submit lay-filter="*">保存</button>
                        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<?php $this->fetch('public/script') ?>
